package com.example.demo.filter;

import java.math.BigDecimal;

import com.alibaba.fastjson.serializer.ValueFilter;

/**
 * @author huangke
 */
public class BigDecimalSerialize implements ValueFilter {
    @Override
    public Object process(Object object, String propertyName, Object propertyValue) {
        if (propertyValue instanceof BigDecimal) {
            return (BigDecimal) propertyValue;
        }
        return propertyValue;
    }
}